﻿<!DOCTYPE html>
<html>
<head>
	<title>动态生成文档示例</title>
	<script type="text/javascript">
		function openNewWin(){
			var newWin = open("","myWindow","width=400,height=100,left=0,top=10,"+
			"toolbar=no,menubar=no,"+"scrollbars=no,resizable=no,location=no,status=no");
			newWin.document.open();
			newWin.document.writeln("<html><head><title>通知</title></head>");
			newWin.document.writeln("<body>");
			newWin.document.writeln("<h1>通知</h1>");
			newWin.document.writeln("<p>请同学们注意,下周举行计算机考试！</p>");
			newWin.document.writeln("</body></html>");
			newWin.document.close();
			newWin.focus();
		}
	</script>
</head>
<body>
<p><a href="javascript:openNewWin()">通知</a></p>
</body>
</html>